import layout from '@/layout'
// export default {
//   path: '/car',
//   component: layout,
//   name: 'car',
//   meta: {
//     icon: 'tree',
//     title: '行车管理'
//   },
//   children: [{
//     path: 'card',
//     component: () => import('@/views/car/carcard/index.vue'),
//     name: 'card',
//     meta: {
//       icon: 'tree',
//       title: '月卡管理'
//     }
//   },
//   {
//     path: 'carrule',
//     component: () => import('@/views/car/carrule/index.vue'),
//     name: 'carrule',
//     meta: {
//       icon: 'el-icon-guide',
//       title: '计费规则管理'
//     }
//   }]
// }
export default {
  path: '/car',
  name: 'car',
  component: layout,
  permission: 'car',
  meta: { title: '行车管理', icon: 'el-icon-guide' },
  children: [{
    path: 'area',
    name: 'area',
    permission: 'car:area',
    component: () => import('@/views/car/cararea'),
    meta: { title: '区域管理' }
  }, {
    path: 'card',
    name: 'monthCard',
    permission: 'car:card',
    component: () => import('@/views/car/carcard'),
    meta: { title: '月卡管理' }
  }, {
    path: 'pay',
    name: 'pay',
    permission: 'car:payment',
    component: () => import('@/views/car/carpay'),
    meta: { title: '停车缴费管理' }
  },
  {
    path: 'rule',
    name: 'billing',
    permission: 'car:rule',
    component: () => import('@/views/car/carrule'),
    meta: { title: '计费规则管理' }
  }]
}
